﻿cmake_minimum_required(VERSION 2.8)
project(curl)
file(GLOB exe_srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c)
include_directories(../lib)
add_definitions(/DHAVE_CONFIG_H)
add_executable(${PROJECT_NAME} ${exe_srcs} ../lib/curl_ctype.c ../lib/nonblock.c ../lib/strtoofft.c ../lib/warnless.c ${PROJECT_NAME}.rc)
target_link_libraries(${PROJECT_NAME} libcurl ${CURL_LIBS})
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
